﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Vehicle
    {
        private string name;
        public string Name 
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public Vehicle() { }
        public Vehicle(string name) 
        {
            this.name = name;
        }
        public void Hello()
        {
            Console.WriteLine("我的名字叫{0}",this.name);
        }

    }
}
